home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4032 < prev    next >
Encoding:
Text File  |  1996-08-06  |  893 b   |  22 lines

  1. Newsgroups: comp.lang.c++
  2. Path: in2.uu.net!allegra!alice!ark
  3. From: ark@research.att.com (Andrew Koenig)
  4. Subject: Re: Strongly Typed Function Pointers
  5. Message-ID: <DLr6Iv.IEp@research.att.com>
  6. Organization: AT&T Research, Murray Hill NJ
  7. References: <erik-2401961956090001@annex-dialup02.med.cornell.edu>
  8. Date: Thu, 25 Jan 1996 20:06:31 GMT
  9.  
  10. In article <erik-2401961956090001@annex-dialup02.med.cornell.edu> erik@mail.med.cornell.edu (Erik A. Dahl) writes:
  11.  
  12. > I have a program that I'm porting from C to C++ which uses void (*)(void*)
  13. > function pointers to call many differant "types" of functions (ones with
  14. > differant argument lists).  This of course works in C but I'm dying in C++
  15. > with compiler errors (becuase the pointer isn't of the right type).  Is
  16. > there an easy way around this problem??
  17.  
  18. It is not guaranteed to work even in C.
  19. -- 
  20.                 --Andrew Koenig
  21.                   ark@research.att.com
  22.